<?php
class Webmaster_log extends CI_Model {
    public function __construct(){
        parent::__construct();
    }
    public function add_manage_log($log,$ctrl,$source){
        $this->db->insert('ca_manage_log',array(
            'ManageName'    =>  $_SESSION['webmaster']['UserName'],
            'Pages'         =>  $ctrl,
            'Ip'            =>  $this->input->ip_address(),
            'Log'           =>  $log,
            'Source'        =>  print_r($source,true),
            'OpTime'        =>  time()
        ));
    }
}